var purviewStore=new Ext.data.JsonStore({
	data:[{text:'系统管理员',value:'E'},
	{text:"总代理用户",value:'B'},
	{text:"经销商用户",value:'C'},
	{text:'经销商子用户',value:'D'}],
	fields:['text','value']
});	
//商品明细处理状态
var stateStore=new Ext.data.JsonStore({
	data:[{text:'未处理',value:'0'},
	{text:"订购成功",value:'1'},
	{text:"订购失败",value:'2'},
	{text:'所有状态',value:'-1'}],
	fields:['text','value']
});	
//优先级
var importStore=new Ext.data.JsonStore({
	data:[
	{text:"第一级",value:'1'},
	{text:"第二级",value:'2'},
	{text:"第三级",value:'3'},
	{text:"第四级",value:'4'},
	{text:"第五级",value:'5'},
	{text:"第六级",value:'6'},
	{text:"第七级",value:'7'}],
	fields:['text','value']
});
//公式种类
var formulaTypeStore=new Ext.data.JsonStore({
	data:[
	{text:"管理员公式",value:'1'},
	{text:"经销商公式",value:'2'},
	{text:"特价公式",value:'3'}],
	fields:['text','value']
});
//颜色：D|E|F|G|H|I|J|K|L|M|N
var colorStore=new Ext.data.JsonStore({
	data:[{text:'D',value:'D'},
	{text:"E",value:'E'},
	{text:"F",value:'F'},
	{text:"G",value:'G'},
	{text:"H",value:'H'},
	{text:"I",value:'I'},
	{text:"J",value:'J'},
	{text:"K",value:'K'},
	{text:"L",value:'L'},
	{text:"M",value:'M'},
	{text:"N",value:'N'}],
	fields:['text','value']
});

//净度：IF|VVS1|VVS2|VS1|VS2|SI1|SI2|SI3|P1|P2|P3
var netStore=new Ext.data.JsonStore({
	data:[{text:"IF",value:'IF'},
	{text:"VVS1",value:'VVS1'},
	{text:"VVS2",value:'VVS2'},
	{text:"VS1",value:'VS1'},
	{text:"VS2",value:'VS2'},
	{text:"SI1",value:'SI1'},
	{text:"SI2",value:'SI2'},
	{text:"SI3",value:'SI3'},
	{text:"P1",value:'P1'},
	{text:"P2",value:'P2'},
	{text:"P3",value:'P3'}],
	fields:['text','value']
});
//切工：Ideal|EX|VG|GD|Fair   
var catTypeStore=new Ext.data.JsonStore({
	data:[{text:'IDEAL',value:'IDEAL'},
	{text:"EX",value:'EX'},
	{text:"VG",value:'VG'},
	{text:"G",value:'G'},
	{text:"FAIL",value:'FAIL'}],
	fields:['text','value']
});

//证书：GIA|HRD|IGI|国检 
var creditStore=new Ext.data.JsonStore({
	data:[{text:'GIA',value:'GIA'},
	{text:"HRD",value:'HRD'},
	{text:"IGI",value:'IGI'},
	{text:"国检",value:'国检'}],
	fields:['text','value']
});

//抛光：Ideal|EX|VG|GD|Fair 
var polishStore=new Ext.data.JsonStore({
	data:[{text:'IDEAL',value:'IDEAL'},
	{text:"EX",value:'EX'},
	{text:"VG",value:'VG'},
	{text:"G",value:'G'},
	{text:"FAIL",value:'FAIL'}],
	fields:['text','value']
});

//对称：Ideal|EX|VG|GD|Fair
var synStore=new Ext.data.JsonStore({
	data:[{text:'IDEAL',value:'IDEAL'},
	{text:"EX",value:'EX'},
	{text:"VG",value:'VG'},
	{text:"G",value:'G'},
	{text:"FAIL",value:'FAIL'}],
	fields:['text','value']
});
//荧光：N|F|M|ST|VST
var lightStore=new Ext.data.JsonStore({
	data:[{text:'N',value:'N'},
	{text:"F",value:'F'},
	{text:"M",value:'M'},
	{text:"ST",value:'ST'},
	{text:"VST",value:'VST'}],
	fields:['text','value']
});
//总代理;
var agentStore=new Ext.data.JsonStore({
	url:'queryUserByUserType.action',
	baseParams :{
		json:"B"
	},
	root: 'list',
	fields:['userName','userId']
});
//经销商;
var DealerStore= new Ext.data.JsonStore({
	url:'queryUserByUserType.action',
	baseParams :{
		json:"B:C"
	},
	root: 'list',
	fields:['userName','userId']
});